package com.cn.service.GoodsService;

import com.cn.Mapper.goodsMapper.OrderMapper;
import com.cn.util.SqlsesstionUtil;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Service;

/**
 * @ClassName OrderService
 * @Description TODO
 * @Author yujiajing
 * @Date 2022/10/15 21:32
 * @Version 1.0
 */
@Service
public class OrderService {
    public  void insertOrderByCartId(){
        SqlSession sqlSession= SqlsesstionUtil.getSqlSession();
        OrderMapper orderMapper=sqlSession.getMapper(OrderMapper.class);
        orderMapper.insertOderByCart();
    }
}
